import { exSelect } from '@ve/common/components/extension'
import { exInput } from '../../extension/index'

export default {
  VERSION: '20220408',
  type: 'uiPage',
  name: '分页器',
  icon: 'checkbox-blank-line',
  svg: 'fenyeqi',
  //数据别名
  // dataName: 'uiFlexbox_data',
  //扩展
  extension: {
    posi: exSelect('内容位置', 'flex-start', [
      {
        label: '左',
        value: 'flex-start',
      },
      {
        label: '中',
        value: 'center',
      },
      {
        label: '右',
        value: 'flex-end',
      },
    ]),
    topMargin: {
      type: 'exInputNumber',
      name: '上外边距',
      value: 0,
    },
    rightMargin: {
      type: 'exInputNumber',
      name: '右外边距',
      value: 0,
    },
    bottomMargin: {
      type: 'exInputNumber',
      name: '下外边距',
      value: 0,
    },
    leftMargin: {
      type: 'exInputNumber',
      name: '左外边距',
      value: 0,
    },
    defaultValue: exInput('总数', 100),
    pageNum: exInput('每页个数', 10),
    color: {
      type: 'exSetChartColor',
      name: '风格颜色',
      value: '#5cdbd9',
    },
    gColor: {
      type: 'exSetChartColor',
      name: '轨迹颜色',
      value: '#fcc',
    },
    bColor: {
      type: 'exSetChartColor',
      name: '波纹颜色',
      value: '#5cdbd9',
    },
    width: exInput('卡片宽度', 50),
    height: exInput('卡片高度', 30),
    fontSize: {
      type: 'exInputNumber',
      name: '字体大小',
      value: 12,
    },
  },
  list: [],
  interaction: [],
}
